<template>
  <el-input v-model="tempValue">备选项</el-input>
</template>

<script>
export default {
  name: "myinput",
  props: ["data"],
  data() {
    return {
      tempValue: this.data.value,
    };
  },
  watch: {
    tempValue(v) {
      this.data.value = v;
    },
  },
};
</script>